/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rationalnumber;

/**
 *
 * @author zynic
 */
public class RationalNumber {

public static boolean sig (char x) {
    boolean y = true;
    if (x == '+'){
        y = true;
    }
    if (x == '-') {
        y = false;
    }
    return y;
}
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        boolean vz1, vz2;
	int z1, n1, z2, n2;
	char operator, sig1, sig2;
		
	sig1 = args[0].charAt(0);
	z1 = Integer.parseInt(args[1]);
	n1 = Integer.parseInt(args[2]);
        operator = args[3].charAt(0);
	sig2 = args[4].charAt(0);
	z2 = Integer.parseInt(args[5]);
	n2 = Integer.parseInt(args[6]);
        
        vz1 = sig(sig1);
        System.out.println(vz1);
    }
}
